

	<section class="container no-header" style="padding-bottom: 1rem">
		<div class="user-header">
			<a class="user-setting" href="<{link app=b2c ctl='wap_member'  act='setting'}>">
				<i class="i-setting"></i>
			</a>
			<div class="box-display user-logined">
				<div class="user-name">
                <p class="fontS"> 你好!<{$member.uname}></p>
                <p class="fontS"> <{$gcname}></p>
					<i class="un-i"></i>
					
					<!-- 签到 -->
					<{if $site_checkout_login_point_open == "true" && $point_usaged == 'true'}>

						<{if $signin_status == false}>
							<!-- 没有签到 -->
							<a href="javascript:void(0);" class="btn-import" id="signin" title="签到获得积分" style="    background: #CC0001; display: inline-block;font-size: 14px;color: #fff;float: right;margin-top: .14rem;padding: 0 .1rem;">
				              
				                签到
				             
				            </a>
				        <{else}>
				        	<!-- 已经签到 -->
							
				        <{/if}>

				    <{/if}>

				</div>

				
			</div>
			<{if $site_checkout_login_point_open == "true" && $point_usaged == 'true'}>
				<div style="text-align: center;padding-top:10px;">
					<{if $signin_status == false}>
						<!-- 没有签到 -->
						<span style="font-size: 13px;">(每日签到获得<{$site_login_point_num}>积分)</span>
			            <!-- 签到次数不包括今天的签到 -->
			            <i>签到次数：<{$snumber}></i>
					<{else}>
						<!-- 已经签到 -->
						<i><{t}> &nbsp;&nbsp;您今天已经签到过了<{/t}></i>
						<i>签到次数：<{$snumber}></i>
			        <{/if}>
				</div>
			<{/if}>
		</div>
		<section class="section-white">
			<div class="section-title user-title">
				<div class="title-text">
					<i class="tit-i ti-1"></i>
					<span class="ts fontS">我的订单<em style="display: inline-block;padding-left: 12px;color: #666;"><{if $count <= 99}><{$ordersum}><{else}>99+<{/if}></em></span>
				</div>
				<div class="more-link">
                    <a class="tit-more-a" href="<{link app=b2c ctl='wap_member' full='1' act='orders'}>">
                    <span  class="more-span fontS">查看全部订单<i class="tm-i"></i>
                    </span>
                    </a>
				</div>
			</div>
			<div class="box-display content-vertical-padded user-orders fontS">
				<a class="box-item-flex1 content-center" href="<{link app=b2c ctl='wap_member' full='1' act='orders' arg0='nopayed'}>">
					<i class="flex-i i1"></i>
					<span class="flex-span s1 fontS">待付款</span>
					<{if $count <= 0}>

					<{else}>
                    <label class="u-num"><{if $count <= 99}><{$count}><{else}>99+<{/if}></label>
                    <{/if}>
				</a>
				<a class="box-item-flex1 content-center" href="<{link app=b2c ctl='wap_member' full='1' act='orders' arg0='noship'}>">
					<i class="flex-i i2"></i>
					<span class="flex-span s2 fontS">待发货</span>
					<{if $count1 <= 0}>

					<{else}>
                    <label class="u-num"><{if $count1 <= 99}><{$count1}><{else}>99+<{/if}></label>
                    <{/if}>
				</a>
				<a class="box-item-flex1 content-center" href="<{link app=b2c ctl='wap_member' full='1' act='orders' arg0='noreceived'}>" style="display:none">
					<i class="flex-i i3"></i>
					<span class="flex-span s3 fontS">待收货</span>
                    <label class="u-num"></label>
				</a>
				<!-- <a class="box-item-flex1 content-center" >
					<i class="flex-i i4"></i>
					<span class="flex-span s4 fontS">待评价</span>
				</a> -->
				<a class="box-item-flex1 content-center" href="<{link app=b2c ctl='wap_member' full='1' act='orders' arg0='dead'}>">
					<i class="flex-i i5"></i>
					<span class="flex-span s5 fontS">已取消</span>
					<{if $countq <= 0}>

					<{else}>
                    <label class="u-num"><{if $countq <= 99}><{$countq}><{else}>99+<{/if}></label>
                    <{/if}>
				</a>
			</div>
		</section>
		<section class="section-white">
			<div class="section-title user-title">
				<div class="title-text">
					<i class="tit-i ti-2"></i>
					<a class="tit-text-a ta-2"><span class="tit-span fontS">我的资产</span></a>
				</div>
				<div class="checkin"></div>
                <button class="btn orange" style="width: 2rem"><a href="<{link app=b2c ctl=wap_member act=deposit}>" style="font-size: .25rem;color: #fff">预存款充值</a></button>
				
			</div>
			 <div class="box-display content-vertical-padded user-">
					<a class="box-item-flex1 content-center shopex-col-xs-4">
						<em style="color: #f58800;"><{$member.advance|cur_odr}></em>
						<br/>
						<span class="font-gray fontS">预存款</span>
					</a>
					<a class="box-item-flex1 content-center shopex-col-xs-4">
						<em style="color: #f58800;"><{$member.point}></em>
						<br/>
						<span class="font-gray fontS">账户总积分</span>
					</a>
					
				</div>
				<!-- <div class="box-display content-vertical-padded user-">
					
					<a class="box-item-flex1 content-center shopex-col-xs-4">
						<em style="color: #f58800;">￥<{$totalreturn}></em>
						<br/>
						<span class="font-gray fontS">今年回款总额</span>
					</a>
					<a class="box-item-flex1 content-center shopex-col-xs-4">
						<em style="color: #f58800;">￥<{$pre_totalreturn}></em>
						<br/>
						<span class="font-gray fontS">去年回款总额</span>
					</a>
				</div> -->
		</section>
		<section class="section-white">
			<ul class="shopex-table-view">
				<li class="shopex-table-view-cell">
					<a class="shopex-navigate-right" href="<{link app=b2c ctl=wap_member act=wechatUnbunding}>">
						<i class="shopex-right-i i6"></i>
						<span class="shopex-right-span s6 fontS">微信解绑并退出</span>
						<p class="right-p"><i></i></p>
					</a>
				</li>

				<li class="shopex-table-view-cell">
					<a class="shopex-navigate-right" href="<{link app=b2c ctl='wap_member' full='1' act='balance'}>">
						<i class="shopex-right-i i1"></i>
						<span class="shopex-right-span s1 fontS">预存款交易记录</span>
						<p class="right-p"><i></i></p>
					</a>
				</li>
				<li class="shopex-table-view-cell">
					<a class="shopex-navigate-right" href="<{link app=b2c ctl='wap_member' full='1' act='securitycenter'}>">
						<i class="shopex-right-i i2"></i>
						<span class="shopex-right-span s2 fontS">安全中心</span>
						<p class="right-p"><i></i></p>
					</a>
				</li>
				<li class="shopex-table-view-cell">
					<a class="shopex-navigate-right" href="<{link app=b2c ctl='wap_member' full='1' act='receiver'}>">
						<i class="shopex-right-i i3"></i>
						<span class="shopex-right-span s3 fontS">地址管理</span>
						<p class="right-p"><i></i></p>
					</a>
				</li>
				<li class="shopex-table-view-cell">
					<a class="shopex-navigate-right" href="<{link app=b2c ctl='wap_cart' full='1' act='index'}>">
						<i class="shopex-right-i i4"></i>
						<span class="shopex-right-span s4 fontS">
                        购物车
                        </span>
						<p class="right-p" ><i></i></p>
					</a>
				</li>
				
				<li class="shopex-table-view-cell">
					<a class="shopex-navigate-right" href="<{link app=b2c ctl='wap_member'  full='1' act='point_history'}>">
						<i class="shopex-right-i i5"></i>
						<span class="shopex-right-span s5 fontS">查看历史积分</span>
						<p class="right-p"><i></i></p>
					</a>
				</li>
                <li class="shopex-table-view-cell">
                    <a class="shopex-navigate-right" href="<{link app=b2c ctl=wap_member act=favorite}>">
                        <i class="shopex-right-i i4"></i>
                        <span class="shopex-right-span s6 fontS">我的收藏</span>
                        <p class="right-p"><i></i></p>
                    </a>
                </li>
				<li class="shopex-table-view-cell">
					<a class="shopex-navigate-right" href="<{link app=b2c ctl=wap_member act=inbox}>">
						<i class="shopex-right-i i6"></i>
						<span class="shopex-right-span s6 fontS">联系我们</span>
						<p class="right-p"><i></i></p>
					</a>
				</li>
				
			</ul>
		</section>
	</section>



<script>
    var e = $.fn.cookie('S[CART_NUMBER]')?$.fn.cookie('S[CART_NUMBER]'):'';
    if(e) $("#cartNum").text(e);

    <{if $site_checkout_login_point_open == "true" && $signin_status == false && $point_usaged == 'true'}>
		// $("signin").addEvents({
		//     'click':function(e){
		//     	alert(1)
		//     new Request({
		//         url:'<{link app=b2c ctl=wap_member act=signin}>',
		//         data:'response_json=true',
		//         onSuccess:function(rs) {
		//             try{
		//                 rs = JSON.decode(rs);
		//             }catch(e){}
		//             if(rs.error) return Message.error(rs.error);
		//             Message.success(rs.success);
		//             $("signin_info").remove();
		//         }
		//       }).post();
		//     }
		// });

		//jQ无刷新页面，访问后台方法
		$("#signin").on("click",function(){

			$.post("<{link app=b2c ctl=wap_member act=signin}>","response_json=true",function(re){
				try{
					

				}catch(e){}
			});
			location.reload();
		})


	<{/if}>

</script>